{include file="public_head"}
<style xmlns="http://www.w3.org/1999/html">
  #sub{
    width: 250px;
    line-height: 48px;
    font-size: 18px;
    background: #E43C3F;
    border: none;
    outline: none;
    border-radius: 6px;
    margin: 50px auto 0;
    display: block;
    color: white;
  }
</style>
{include file="public_menu"}
  <div class="content_center">
    <div class="main_center">
      {include file="public_information_menu"}
      <div class="main_right right">
        <div class="main_right_title">佣金提现</div>
        <div class="integral_con">
          <div class="center-cash">
            <div class="balance">
              <div class="main">
                <div class="left">
                  <img class="qianbi" src="__STATIC__/img/logo25.jpg">
                  <span class="yue">佣金余额（元）</span>
                  <h4 class="price">{$brokerage.actual_amount}元</h4>
                </div>
              </div>
            </div>
            <form action="" method="post" id="rechage">
            <div class="cash">

              <div>
                <h4>提现金额</h4>
                <input type="text" placeholder="提现金额需大于1.00元" class="text" name="price" datatype="price" nullmsg="请输入提现金额！" errormsg="提现金额错误">
              </div>
              <div>
                <h4>提现方式</h4>
                <form role="form">
                  <div class="form-group">
                    <select class="form-control" name="way" >
                      <option value="支付宝">支付宝</option>
                      <option value="微信">微信</option>
                    </select>
                  </div>
                </form>
              </div>
              <div>
                <h4>账号</h4>
                <input type="text" placeholder="请填写微信或支付宝账号" class="text" name="account" datatype="*" nullmsg="请填写微信或支付宝账号！" errormsg="请填写微信或支付宝账号">
              </div>
              <span>温馨提示：到账时间预计4-6天到账</span>
              <input type="submit" id="sub" value="提现" >
            </div>
            </form>
          </div>

        </div>
      </div>
    </div>
  </div>
<script>
  // 佣金提现到银行卡
  $(function () {
    $.Tipmsg.r = null;
    $.Tipmsg.p = null;
    $.Datatype.price = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/;
//    $.Datatype.card = /^(998801|998802|622525|622526|435744|435745|483536|528020|526855|622156|622155|356869|531659|622157|627066|627067|627068|627069)\d{10}$/;
//    $.Datatype.card = /([\d]{4})([\d]{4})([\d]{4})([\d]{4})([\d]{0,})?/;

    // ajax提交
    $("#rechage").Validform({

      tiptype: function (msg) {

        layer.msg(msg, {icon: 2});

      },
      btnSubmit: '#sub',
      tipSweep: true,
      ajaxPost: true,
      // 回调函数
      callback: function (t) {
        if (t.code == 200) {

          layer.msg(t.message, {icon: 1});

          location.reload();
        } else {

          layer.msg(t.message);

        }
      }
    });
  });
</script>
{include file="public_foot"}